#include<stdio.h>
#include<math.h>

double myround(double x);

int main()
{
    printf("%f\n", myround(-4.51));

    return 0;
}

double myround(double x)
{
    if (x > 0)
        return floor(x + 0.5);
    else
        return ceil(x - 0.5);
}

